/*
 * JavaPrintLine.java
 * Created on August 12, 2008, 2:30 AM by Uru
 *
 * Allows a lua program to print using the java println() command
 * Good for light debugging
 */

package LuaSystem;

import org.keplerproject.luajava.*;

public class JavaPrintLine extends JavaFunction{
    LuaState L;
    
    public JavaPrintLine(LuaState l){
        super(l);
        L = l;
    }
    
    public int execute(){
        int n = L.getTop();
        String t = L.toString(n);
        System.out.println(t);
        return 0;
    }
    
}
